from flask import Blueprint, render_template

bp = Blueprint("todo", __name__)
j_data = [{"id": 1, "fName": 'Hege', "lName": "Pege"},
          {"id": 2, "fName": 'Kim', "lName": "Pim"},
          {"id": 3, "fName": 'Sal', "lName": "Smith"},
          {"id": 4, "fName": 'Jack', "lName": "Jones"},
          {"id": 5, "fName": 'John', "lName": "Doe"},
          {"id": 6, "fName": 'Peter', "lName": "Pan"}]


@bp.route("/")
@bp.route('/index.do')
def index():
    return render_template("todo/index.html", jdata=j_data)
